<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>headless</title>
  <link rel="stylesheet" href="../../src/core/qunit.css">
  <script src="../../qunit/qunit.js"></script>
  <script src="../main/assert.js"></script>
  <script src="../main/deepEqual.js"></script>
  <script src="../main/TapReporter.js"></script>
  <script src="../main/test.js"></script>
  <script>
  (function () {
    function createCallback (eventName) {
      QUnit.on(eventName, function (eventData) {
        console.log(eventName, eventData);
      });
    }

    var debugTimeout = setTimeout(function () {
      console.error('runEnd event not seen after 1 second. Something broken?');
    }, 1000);
    QUnit.on('runEnd', function () {
      clearTimeout(debugTimeout);
    });

    // For debugging
    if (self.__grunt_contrib_qunit__ === undefined) {
      var logs = ['runStart', 'testStart', 'testEnd', 'runEnd'];
      for (var i = 0; i < logs.length; i++) {
        createCallback(logs[i]);
      }
    }
  }());
  </script>
</head>
<body>
  <!-- There is no div#qunit element, which means there should
       not be any default UI on this page.
   -->
  <div id="qunit-fixture">test markup</div>
</body>
</html>
